package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.rebate.ChinaUserRebate;
import com.yanqu.road.entity.rebate.UserRebateInfo;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class UserRebateBussiness {

	public static Map<String,UserRebateInfo> getUserRebateInfoMap() {
		return DaoHelper.getUserRebateDaoImpl().getUserRebateInfoMap();
	}

	public static boolean addUserRebateInfo(UserRebateInfo data) {
		return DaoHelper.getUserRebateDaoImpl().add(data);
	}

	public static boolean updateUserRebateInfo(UserRebateInfo data) {
		return DaoHelper.getUserRebateDaoImpl().update(data);
	}


	//国服返利
	public static Map<String, ChinaUserRebate> getServerChinaUserRebateMap() {
		return DaoHelper.getChinaUserRebateDaoImpl().getServerChinaUserRebateMap();
	}

	//国服返利
	public static Map<String, ChinaUserRebate> getChinaUserRebateMap() {
		return DaoHelper.getChinaUserRebateDaoImpl().getChinaUserRebateMap();
	}

	public static boolean updateChinaUserRebate(ChinaUserRebate data) {
		return DaoHelper.getChinaUserRebateDaoImpl().update(data);
	}

	public static boolean addChinaUserRebate(ChinaUserRebate data) {
		return DaoHelper.getChinaUserRebateDaoImpl().add(data);
	}


	public static ChinaUserRebate getServerChinaUserRebate(String openId) {
		return DaoHelper.getChinaUserRebateDaoImpl().getServerChinaUserRebate(openId);
	}

	public static boolean updateServerChinaUserRebate(String openId) {
		return DaoHelper.getChinaUserRebateDaoImpl().updateServerChinaUserRebate(openId);
	}

}
